package com.lonely.deliver.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lonely.common.core.domain.StatusInfo;
import com.lonely.deliver.domain.dto.QueryOrderDeliverPageDTO;
import com.lonely.deliver.domain.entity.SysOrderDeliver;
import com.lonely.deliver.domain.vo.QueryOrderDeliverPageVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author : 黄志标
 * @date: 2025/8/15 17:31
 * @description: 订单发货mapper
 */
public interface SysOrderDeliverMapper extends BaseMapper<SysOrderDeliver> {

    /**
     * 订单发货单分页查询
     *
     * @param page
     * @param queryDto
     * @return
     */
    Page<QueryOrderDeliverPageVO> page(Page<QueryOrderDeliverPageVO> page, @Param("query") QueryOrderDeliverPageDTO queryDto);

    /**
     * 获取订单发货单状态数量
     *
     * @param queryDto
     * @return
     */
    List<StatusInfo> getStatusTotals(@Param("query") QueryOrderDeliverPageDTO queryDto, @Param("dataPermissions") String dataPermissions);

}
